/*
 * logger.c
 *
 *  Created on: Mar 2, 2012
 *      Author: Administrator
 */


#include "utils.h"
#include <stdarg.h>
int sipxmpp_log_syslog = 1;
int sipxmpp_loglevel(int level,char *fmt,...)
{
	va_list vl;
	va_start(vl,fmt);
	if(sipxmpp_log_syslog)	vsyslog(level,fmt,vl);
	else					vfprintf(stderr,fmt,vl);
	va_end(vl);
	return 0;
}
